package servlet;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class BookTag extends SimpleTagSupport{
	
	//定义成员变量代表标签属性
	private String name;
	private String date;
	private String auther;
	
	

	public void doTag() throws JspException,IOException {

		getJspContext().getOut().println("书名："+name+"<hr>"
				+"出版日期："+date+"<hr>"
				+"作者："+auther+"<hr>");
		

	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getDate() {
		return date;
	}



	public void setDate(String date) {
		this.date = date;
	}



	public String getAuther() {
		return auther;
	}



	public void setAuther(String auther) {
		this.auther = auther;
	}
	
	
	


}
